package com.tensquare.qa.controller;

import com.tensquare.qa.service.PlService;
import entity.Result;
import entity.StatusCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/pl")
public class PlController {

    @Autowired
    private PlService plService;

    //查询全部数据
    @RequestMapping(method = RequestMethod.GET)
    public Result findALl(){
        return new Result(true, StatusCode.OK, "查询成功", plService.findAll());
    }
}
